AgreeAddPlusWinCtl = Ext.extend(CmpControler, {

			bulidComponent : function() {

				var config = this.getCommonConfig();

				config = this.configItems(config);

				config = this.configButtons(config);

				var win = new Ext.Window(config);

				return win;
			},
			getCommonConfig : function() {

				var config = {
					width : cf.getC('gcc').sw * 0.8,
					height : cf.getC('gcc').sh * 0.8,
					// frame : true,
					layout : 'border',
					title : '添加协议单',
					closeAction : 'hide'
				};

				return config;

			},
			configItems : function(config) {
				var aapfc = cf.getC('aapfc');
				var aapcc = cf.getC('aapcc');
				config.items = [aapfc.getComponent(), aapcc.getComponent()];

				return config;
			},
			configButtons : function(config) {

				config.buttons = [{
							text : '提交',
							handler : this.submit,
							scope : this
						}, {
							text : '取消',
							handler : function() {
								this.cmp.hide();
							},
							scope : this
						}];

				config.buttonAlign = 'center'

				return config;

			},
			show : function(id) {
				var aapfc = cf.getC("aapfc");
				aapfc.load(id);
				this.cmp.show();

			},
			create : function() {

			},
			submitBack : function(response) {

			},
			submit : function() {

				var aapfc = cf.getC('aapfc');
				aapfc.submit();
				this.cmp.hide();

			}

		});
